﻿<Window x:Class="SlideShowDFG2.VideoPreviewWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SlideShowDFG2" Height="300" Width="300" ShowInTaskbar="False"
    Loaded="Window_Loaded" Closing="Window_Closing">
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="28" />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>
        <MediaElement Grid.Column="0" Grid.Row="0" Name="mePlayer" LoadedBehavior="Manual" UnloadedBehavior="Manual" />
        <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Width="70" Name="btnPlayPause" Click="btnPlayPause_Click">Play</Button>
            <Separator Background="White" Width="15" />
            <Button Width="70" Name="btnClose" Click="btnClose_Click">Close</Button>
        </StackPanel>
        <StackPanel Grid.Column="0" Grid.Row="2" Orientation="Horizontal">
            <ProgressBar Name="pbProgress" Margin="3" Width="170" />
            <Separator Background="White" Width="5" />
            <Label Name="lblStatus" />
        </StackPanel>
    </Grid>
</Window>
